﻿<phone:PhoneApplicationPage x:Class="CharacterProgressControlDemo.WP8.MainPage"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                            mc:Ignorable="d"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            FontSize="{StaticResource PhoneFontSizeNormal}"
                            Foreground="{StaticResource PhoneForegroundBrush}"
                            SupportedOrientations="Portrait"
                            xmlns:progressControls="clr-namespace:CharacterProgressControl.WP8;assembly=CharacterProgressControl"
                            Orientation="Portrait"
                            shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot"
          Background="Transparent">

        <StackPanel>
            <progressControls:CProgressControl Minimum="0"
                                               Maximum="100"
                                               BorderBrush="Brown"
                                               Foreground="Red"
                                               Background="White"
                                               DisplayOption="ManType3"
                                               TextForeground="DarkGray"
                                               Width="100"
                                               Height="270"
                                               Value="{Binding Path=Value, ElementName=slider}" />
            <Slider Minimum="0"
                    Maximum="100"
                    x:Name="slider" />
        </StackPanel>

    </Grid>

</phone:PhoneApplicationPage>